package org.example.back.mapper.advice;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

@Mapper
public interface UserMealAdviceMapper {
    String findAdvice(@Param("userId") Integer userId,
                      @Param("type") String type,
                      @Param("date") LocalDate date);

    void insertAdvice(@Param("userId") Integer userId,
                      @Param("type") String type,
                      @Param("date") LocalDate date,
                      @Param("content") String content);

    void deleteAdviceByType(@Param("type") String type);

    void deleteAdviceByUserAndType(@Param("userId") Integer userId,
                                   @Param("type") String type);
}
